package com.wg.wuge.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * MyBatis DO抽象基类
 *
 * @author wugeng
 * @date 2021/4/30
 */
@Data
public abstract class BaseCommanderMyBatisDO {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(fill = FieldFill.INSERT, value = "create_time")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE, value = "modify_time")
    private LocalDateTime modifyTime;
    @TableField("deleted")
    private Long deleted;

}


